package com.yycx.common.base.vo;

import lombok.Data;

@Data
public class Ueditor {
    //前端传过来的参数，用于区分是什么请求
    public final static String ACTION_CONFIG = "config";
    public final static String ACTION_UPLOADIMAGE = "upload";
    public final static String ACTION_UPLOADVIDEO = "uploadvideo";
    public final static String ACTION_UPLOADFILE = "uploadfile";
    //后端返给前端的参数，需要时特定格式
    public final static String ACTION_SUCCESS = "SUCCESS";
    public final static String ACTION_FAIL = "FAIL";
    private String state;
    private String url;
    private String title;
    private String original;

    //关键，假装自己是jsp的东西
    public final static String UEDITOR_CONFIG = "{\n" +
            "    \"imageActionName\": \"upload\",\n" +
            "    \"imageFieldName\": \"upfile\",\n" +
            "    \"imageMaxSize\": 16777216,\n" +
            "    \"imageAllowFiles\": [\".png\", \".jpg\", \".jpeg\", \".gif\", \".bmp\", \".webp\", \".PNG\", \".JPG\", \".JPEG\", \".GIF\", \".BMP\", \".WEBP\"],\n" +
            "    \"imageCompressEnable\": true,\n" +
            "    \"imageCompressBorder\": 1600,\n" +
            "    \"imageInsertAlign\": \"none\",\n" +
            "    \"imageUrlPrefix\": \"//storage-1307502279.cos.ap-shanghai.myqcloud.com/\",\n" +
            "    \"imagePathFormat\": \"project/ueditor/storage/image/{yyyy}{mm}{dd}/{time}\",\n" +
            "    \"scrawlActionName\": \"uploadscrawl\",\n" +
            "    \"scrawlFieldName\": \"upfile\",\n" +
            "    \"scrawlPathFormat\": \"project/ueditor/storage/image/{yyyy}{mm}{dd}/{time}\",\n" +
            "    \"scrawlMaxSize\": 16777216,\n" +
            "    \"scrawlUrlPrefix\": \"//storage-1307502279.cos.ap-shanghai.myqcloud.com/\",\n" +
            "    \"scrawlInsertAlign\": \"none\",\n" +
            "    \"snapscreenActionName\": \"uploadimage\",\n" +
            "    \"snapscreenPathFormat\": \"project/ueditor/storage/image/{yyyy}{mm}{dd}/{time}\",\n" +
            "    \"snapscreenUrlPrefix\": \"//storage-1307502279.cos.ap-shanghai.myqcloud.com/\",\n" +
            "    \"snapscreenInsertAlign\": \"none\",\n" +
            "    \"catcherLocalDomain\": [\"127.0.0.1\", \"localhost\", \"img.baidu.com\"],\n" +
            "    \"catcherActionName\": \"catchimage\",\n" +
            "    \"catcherFieldName\": \"source\",\n" +
            "    \"catcherPathFormat\": \"project/ueditor/storage/image/{yyyy}{mm}{dd}/{time}\",\n" +
            "    \"catcherUrlPrefix\": \"//storage-1307502279.cos.ap-shanghai.myqcloud.com/\",\n" +
            "    \"catcherMaxSize\": 16777216,\n" +
            "    \"catcherAllowFiles\": [\".png\", \".jpg\", \".jpeg\", \".gif\", \".bmp\", \".PNG\", \".JPG\", \".JPEG\", \".GIF\", \".BMP\"],\n" +
            "    \"videoActionName\": \"uploadvideo\",\n" +
            "    \"videoFieldName\": \"upfile\",\n" +
            "    \"videoPathFormat\": \"project/ueditor/storage/video/{yyyy}{mm}{dd}/{time}\",\n" +
            "    \"videoUrlPrefix\": \"//storage-1307502279.cos.ap-shanghai.myqcloud.com/\",\n" +
            "    \"videoMaxSize\": 16777216,\n" +
            "    \"videoAllowFiles\": [\".flv\", \".swf\", \".mkv\", \".avi\", \".rm\", \".rmvb\", \".mpeg\", \".mpg\", \".ogg\", \".ogv\", \".mov\", \".wmv\", \".mp4\", \".webm\", \".mp3\", \".wav\", \".mid\", \".FLV\", \".SWF\", \".MKV\", \".AVI\", \".RM\", \".RMVB\", \".MPEG\", \".MPG\", \".OGG\", \".OGV\", \".MOV\", \".WMV\", \".MP4\", \".WEBM\", \".MP3\", \".WAV\", \".MID\"],\n" +
            "    \"fileActionName\": \"uploadfile\",\n" +
            "    \"fileFieldName\": \"upfile\",\n" +
            "    \"filePathFormat\": \"project/ueditor/storage/file/{yyyy}{mm}{dd}/{time}\",\n" +
            "    \"fileUrlPrefix\": \"//storage-1307502279.cos.ap-shanghai.myqcloud.com/\",\n" +
            "    \"fileMaxSize\": 16777216,\n" +
            "    \"fileAllowFiles\": [\".png\", \".jpg\", \".jpeg\", \".gif\", \".bmp\", \".flv\", \".swf\", \".mkv\", \".avi\", \".rm\", \".rmvb\", \".mpeg\", \".mpg\", \".ogg\", \".ogv\", \".mov\", \".wmv\", \".mp4\", \".webm\", \".mp3\", \".wav\", \".mid\", \".rar\", \".zip\", \".tar\", \".gz\", \".7z\", \".bz2\", \".cab\", \".iso\", \".doc\", \".docx\", \".xls\", \".xlsx\", \".ppt\", \".pptx\", \".pdf\", \".txt\", \".md\", \".xml\", \".PNG\", \".JPG\", \".JPEG\", \".GIF\", \".BMP\", \".FLV\", \".SWF\", \".MKV\", \".AVI\", \".RM\", \".RMVB\", \".MPEG\", \".MPG\", \".OGG\", \".OGV\", \".MOV\", \".WMV\", \".MP4\", \".WEBM\", \".MP3\", \".WAV\", \".MID\", \".RAR\", \".ZIP\", \".TAR\", \".GZ\", \".7Z\", \".BZ2\", \".CAB\", \".ISO\", \".DOC\", \".DOCX\", \".XLS\", \".XLSX\", \".PPT\", \".PPTX\", \".PDF\", \".TXT\", \".MD\", \".XML\"],\n" +
            "    \"imageManagerActionName\": \"listimage\",\n" +
            "    \"imageManagerListPath\": \"project/ueditor/storage/image/\",\n" +
            "    \"imageManagerListSize\": 20,\n" +
            "    \"imageManagerUrlPrefix\": \"//storage-1307502279.cos.ap-shanghai.myqcloud.com/\",\n" +
            "    \"imageManagerInsertAlign\": \"none\",\n" +
            "    \"imageManagerAllowFiles\": [\".png\", \".jpg\", \".jpeg\", \".gif\", \".bmp\", \".PNG\", \".JPG\", \".JPEG\", \".GIF\", \".BMP\"],\n" +
            "    \"fileManagerActionName\": \"listfile\",\n" +
            "    \"fileManagerListPath\": \"project/ueditor/storage/file/\",\n" +
            "    \"fileManagerUrlPrefix\": \"//storage-1307502279.cos.ap-shanghai.myqcloud.com/\",\n" +
            "    \"fileManagerListSize\": 20,\n" +
            "    \"fileManagerAllowFiles\": [\".png\", \".jpg\", \".jpeg\", \".gif\", \".bmp\", \".flv\", \".swf\", \".mkv\", \".avi\", \".rm\", \".rmvb\", \".mpeg\", \".mpg\", \".ogg\", \".ogv\", \".mov\", \".wmv\", \".mp4\", \".webm\", \".mp3\", \".wav\", \".mid\", \".rar\", \".zip\", \".tar\", \".gz\", \".7z\", \".bz2\", \".cab\", \".iso\", \".doc\", \".docx\", \".xls\", \".xlsx\", \".ppt\", \".pptx\", \".pdf\", \".txt\", \".md\", \".xml\", \".PNG\", \".JPG\", \".JPEG\", \".GIF\", \".BMP\", \".FLV\", \".SWF\", \".MKV\", \".AVI\", \".RM\", \".RMVB\", \".MPEG\", \".MPG\", \".OGG\", \".OGV\", \".MOV\", \".WMV\", \".MP4\", \".WEBM\", \".MP3\", \".WAV\", \".MID\", \".RAR\", \".ZIP\", \".TAR\", \".GZ\", \".7Z\", \".BZ2\", \".CAB\", \".ISO\", \".DOC\", \".DOCX\", \".XLS\", \".XLSX\", \".PPT\", \".PPTX\", \".PDF\", \".TXT\", \".MD\", \".XML\"],\n" +
            "    \"imageUrl\": \"//localhost:8211/file/upload\"\n" +
            "}";
}

